package com.changgou.consume.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;

/**
 * @author wz
 * @company 公司
 * @create 2020-04-20 16:29
 */
public class RabbitMQConfig {
    public static final String SECKILL_ORDER_QUUEU="seckill_order";

    @Bean
    public Queue queue(){
        return new Queue(SECKILL_ORDER_QUUEU,true);//开启队列持久化
    }
}
